{any_include file="scp_page_start.tpl" wide=1}

<!-- $Id$ -->

<h1>OAuth - Delete Key For This Site</h1>

{any_include file="scp_oauth_menu.tpl"}

<p>
	Consumer key are needed by third party applications and websites when they communicate with this website.<br/>
	Third parties do not have access to this website without a valid consumer key and secret.
</p>

{if $error}
<p class="error">
	Can not delete the consumer key.  Either it does not exist or you don't have the permission to delete it.
</p>

<p>
	<a href="{$rel_path}module/OAuth/server/list" class="button">
		Cancel
	</a>
</p>

{else}
<p class="error">
	Do you want to delete the consumer key for the application {$consumer.application_title|trim|default:$consumer.application_uri|default:"Unknown"|escape}?
	<br/>
{if $token_ct}
	This key is used by {$token_ct} application{if $token_ct>1}s{/if}.
{else}
	This key is not used by any applications.
{/if}
</p>

<form method="post" action="{$rel_path}module/OAuth/server/delete">
<input type="hidden" name="consumer_key"  value="{$consumer.consumer_key|escape}" />
<input type="hidden" name="confirm"       value="1" />
<p>
	<button type="submit" class="negative">
		Delete
	</button>
	
	<a href="{$rel_path}module/OAuth/server/list" class="button">
		Cancel
	</a>
</p>
	
</form>

{/if}

{any_include file="scp_page_end.tpl" wide=1}
